package com.changgou.goods.dao;


import com.changgou.goods.pojo.Para;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import tk.mybatis.mapper.common.Mapper;

public interface ParaMapper extends Mapper<Para> {

    /**
     * 新增参数
     * @param para
     */
    @Insert("insert into tb_para values(null,#{name},#{spec_id},#{spec_name},#{detail},#{order},#{input_type},#{isaotuupdata})")
    void add_Para(Para para);

    /**
     * 根据模板id删除para
     * @param id
     */
    @Delete("delete from tb_para where template_id = #{id}")
    void deleteByTemplateId(Integer id);
}
